#ifndef MATRIX
#define  MATRIX
#include "EGL/egl.h"
#include "GLES2/gl2.h"

class Vector3{
public:
	GLfloat x,y,z;
	Vector3(){}
	Vector3(GLfloat x_,GLfloat y_,GLfloat z_):x(x_),y(y_),z(z_){}
};
typedef  Vector3* Vector3P;
class matrix
{
public:
	static void translate(GLfloat x, GLfloat y, GLfloat z, GLfloat *R,GLuint size);
	static void rotate(GLfloat angle, GLfloat x, GLfloat y, GLfloat z, GLfloat *R);
	static void perspective(GLfloat fovy, GLfloat aspect, GLfloat znear, GLfloat zfar, GLfloat *P);
	static void multiple(GLfloat *A, GLfloat *B, GLfloat *C);
	static void lookat(Vector3P camera, Vector3P target, Vector3P diretion , GLfloat *mat4);
	static void normalize(Vector3P point);
	static void cross(Vector3P a, Vector3P b , Vector3P c);
};

#endif